import Layout from '@/layout'

const gdsRouter =
{
  path: '/gds',
  name: 'gds-group',
  component: Layout,
  meta: { title: '货品管理', icon: 'tree', roles: ['m5400'] },
  children: [
    {
      path: 'category',
      component: (resolve) => require(['@/views/gds-group/category-manage/index'], resolve),
      name: 'CategoryManage',
      remoteParam: { serviceName: 'wms', path: '/api/gds/category-info/' },
      remoteUrl: '',
      meta: { title: '货品分类', roles: ['m5410'] }
    },
    {
      path: 'product',
      component: (resolve) => require(['@/views/gds-group/product-manage/index'], resolve),
      name: 'ProductManage',
      remoteParam: { serviceName: 'wms', path: '/api/gds/product-info/' },
      remoteUrl: '',
      meta: { title: '货品列表', roles: ['m5410'] }
    }
  ]
}
export default gdsRouter
